from flask import Flask, send_file
import sys


app = Flask(__name__)

@app.route('/')
@app.route('/index.html')
def index():
    #首页
    return send_file('html/index.html')


@app.route('/login')
def login():
    #登录
    return send_file('html/login.html')

@app.route('/register')
def register():
    #注册
    return send_file('html/register.html')


@app.route('/<username>/info')
def info(username):
    #个人信息
    return send_file('html/profile.html')

@app.route('/<username>/change_password')
def change_password(username):
    #修改密码
    return send_file('html/change_password.html')



if __name__ == '__main__':
    app.run(debug=True)
